<?php

use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        $data = [];
        for($i=0;$i<100;$i++){
        	$tmp = [];
        	$tmp['username'] = str_random(10);
        	$tmp['password'] = Hash::make('lamp171');
        	$tmp['email'] = str_random(10).'@qq.com';
        	$tmp['chengwei'] = str_random(10);

        	$data[] = $tmp;
        }
        DB::table('users')->insert($data);
    }
}
